<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>显示模式</title>
    <style>
        div {
            width: 300px;
            height: 300px;
            background-color: orangered;
            margin: 10px;
            display: block;   /* 显示模式：display是属性名，属性值有三种，分别为 block（块元素）、inline-block（行内块元素）、inline（行内元素） */
        }

        span {
            width: 300px;
            height: 300px;
            background-color: chartreuse;
            margin: 10px;
            display: inline-block;
        }
    </style>
</head>
<body>
    <div></div>
    <div></div>

    <span></span>
    <span></span>
</body>
</html>